package com.example.task;

import com.example.manager.AisManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 *
 * @author: Fred
 * @email 453086@qq.com
 * @create: 2024-09-06 13:09
 */
@Slf4j
@Component
@EnableScheduling
public class MyScheduledTask {

    private final AisManager aisManager = AisManager.getInstance();

    @Scheduled(cron = "*/10 * * * * ?")
    public void cleanLostVesselTask() {
//        aisManager.cleanLostVesselPositions();
    }

}
